#ifdef OSGI_USE_15S_HEADER
#include "../interface/InterfaceDef.h"
#include "osgi-core/osgi-predefined.h"
#else // OSGI_USE_15S_HEADER
#ifndef OSGI_CORE_ISYSTEMEVENT_H__
#define OSGI_CORE_ISYSTEMEVENT_H__

#include "osgi-predefined.h"
#include "IEvent.h"

#define SYSTEM_STARTED_EVENT 1
#define SYSTEM_SHUTDOWN_EVENT 2

OSGI_NAMESPACE_BEGIN

OSGI_INTERFACE ISystemEvent : public IEvent
{

};

OSGI_INTERFACE ISystemEventListener
{
	virtual ~ISystemEventListener() {}

	virtual int OSGI_API OnSystemEvent(
		ISystemEvent* event) = 0;
};

OSGI_NAMESPACE_END

#endif // OSGI_CORE_ISYSTEMEVENT_H__
#endif // OSGI_USE_15S_HEADER